package jvm;

import java.util.Random;

public class Memory {
    public static void main(String args[]){
//        System.out.println(Runtime.getRuntime().maxMemory());
//        System.out.println(Runtime.getRuntime().totalMemory());



        String str = "shanglai";
        while (true){
            str += str + new Random().nextInt(88888888) + new Random().nextInt(999999999);
        }
    }
}
